package Chpter4;

interface Animal10{
	void shout();
}

class Cat10 implements Animal10{
	public void shout() {
		System.out.println("miao");
	}
	public void sleep() {
		System.out.println("sleep");
	}
}

public class Example14 {
	public static void main(String[] args) {
		Cat10 cat=new Cat10();
		animalShout(cat);
	}
	public static void animalShout(Animal10 animal) {
		Cat10 cat=(Cat10) animal;
		cat.shout();
		cat.sleep();
		
	}

}
